package com.qyhl.webtv.module_circle.circle.topicdetail;


import com.qyhl.webtv.commonlib.entity.circle.CircleHomeBean;
import com.qyhl.webtv.commonlib.entity.intergral.CoinBean;

import java.util.List;

/**
 * Created by qyhl on 2018/2/6.
 */

public interface TopicDetailContract {
    interface TopicDetailView {
        void setDatas(List<CircleHomeBean> beanList, boolean isMore);

        void setBase(CircleHomeBean.TagList bean);

        void setNetError(String msg);

        void setError(String msg);

        void setEmpty(String msg);

        void setLog(String msg);

        void showMessage(String msg);

        void setBaseError(String msg);

        void commentSuccess(int id, String msg, int code);

        void commentError(String msg);

        void getCoinError(String msg);

        void getCoinSuccess(CoinBean coinBean);
    }

    interface TopicDetailPresenter {
        void getDatas(String tagId, String lastTopicId);

        void getBaseInfo(String tagId);

        void sendComment(String topicId, String content, String dstUsername);

        void setDatas(List<CircleHomeBean> beanList, boolean isMore);

        void setError(int code, String msg);

        void setBase(CircleHomeBean.TagList bean);

        void setBaseError(String msg);

        void commentSuccess(int id, String msg, int code);

        void commentError(String msg);

        void getCommentCoin();

        void getCoinError(String msg);

        void getCoinSuccess(CoinBean coinBean);
    }

    interface TopicDetailModel {
        void getDatas(String tagId, String lastTopicId);

        void getBaseInfo(String tagId);

        void sendComment(String topicId, String content, String dstUsername);

        void getCommentCoin();
    }
}
